package com.qidian.mespro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.pro.WorkflowProcess;

/**
 * @ Description:
 * @ Author: DuYaTao
 * @ Date: 2025/9/19 - 14:09
 */
public interface WorkflowProcessService {

    Result<PageInfo<WorkflowProcess>> getList(WorkflowProcess workflowProcess , int page, int size);

    Result<WorkflowProcess> addWorkflowProcess(WorkflowProcess workflowProcess);

    /**
     * 根据id查询工艺工序
     * @param id
     * @return
     */
    Result<WorkflowProcess> selectById(Long id);

    /**
     * 根据id修改工艺工序
     * @param workflowProcess
     * @return
     */
    Result<WorkflowProcess> updateWorkflowProcess(WorkflowProcess workflowProcess);

    /**
     * 根据id删除工艺工序
     * @param id
     * @return
     */
    Result<WorkflowProcess> deleteById(Long id);

    /**
     * 根据id批量删除工艺工序
     * @param ids
     * @return
     */
    Result<WorkflowProcess> deleteBatchByIds(Long[] ids);
}
